package top.frsf.object.bullet;

import top.frsf.constants.ImageConstant;
import top.frsf.enums.ZomStateEnum;
import top.frsf.object.zombie.ZomObject;

/**
 * 冰豌豆子弹
 *
 * @author He Kuntao
 * @since 2025/8/4 15:35
 */
public class SnowPesBullet extends BulletObject {

    public SnowPesBullet(int x, int y) {
        super(ImageConstant.Bullet.SNOW_PEA, x, y, 30, 30, 5, 10);
    }

    @Override
    protected void attack(ZomObject zomObject) {
        super.attack(zomObject);
        zomObject.setState(ZomStateEnum.SNOW_MOVE);
        zomObject.setSnowSpeed(zomObject.getSpeed() / 2);
    }
}
